package com.cf.apiInstance.domain;

import java.util.Date;

public class ApiLog {
	private Integer id;

	private String sourceIp;

	private String tokenInfo;

	private Integer costTime;

	private String optUrl;

	private String optComment;

	private Integer optStatus;

	private String optMessage;

	private Date createTime;

	public ApiLog() {
		super();
	}

	public ApiLog(String sourceIp, String tokenInfo, Integer costTime, String optUrl, String optComment, Integer optStatus, String optMessage, Date createTime) {
		super();
		this.sourceIp = sourceIp;
		this.tokenInfo = tokenInfo;
		this.costTime = costTime;
		this.optUrl = optUrl;
		this.optComment = optComment;
		this.optStatus = optStatus;
		this.optMessage = optMessage;
		this.createTime = createTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSourceIp() {
		return sourceIp;
	}

	public void setSourceIp(String sourceIp) {
		this.sourceIp = sourceIp;
	}

	public String getTokenInfo() {
		return tokenInfo;
	}

	public void setTokenInfo(String tokenInfo) {
		this.tokenInfo = tokenInfo;
	}

	public Integer getCostTime() {
		return costTime;
	}

	public void setCostTime(Integer costTime) {
		this.costTime = costTime;
	}

	public String getOptUrl() {
		return optUrl;
	}

	public void setOptUrl(String optUrl) {
		this.optUrl = optUrl;
	}

	public String getOptComment() {
		return optComment;
	}

	public void setOptComment(String optComment) {
		this.optComment = optComment;
	}

	public Integer getOptStatus() {
		return optStatus;
	}

	public void setOptStatus(Integer optStatus) {
		this.optStatus = optStatus;
	}

	public String getOptMessage() {
		return optMessage;
	}

	public void setOptMessage(String optMessage) {
		this.optMessage = optMessage;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "ApiLog [id=" + id + ", sourceIp=" + sourceIp + ", tokenInfo=" + tokenInfo + ", costTime=" + costTime + ", optUrl=" + optUrl + ", optComment=" + optComment + ", optStatus=" + optStatus
				+ ", optMessage=" + optMessage + ", createTime=" + createTime + "]";
	}

}